//
//  HELFirstHomeCell.m
//  sanda
//
//  Created by wsj2015 on 16/7/12.
//  Copyright © 2016年 陈武琦. All rights reserved.
//

#import "HELFirstHomeCell.h"
//#import "UIButton+LXLayout.h"
#import "UIView+RippleAnimation.h"
static NSArray *arr;
@implementation HELFirstHomeCell

- (void)awakeFromNib {
    // Initialization code
//    [self.fistBtn lx_layoutWithType:LXButtonLayoutTypeImageTop subMargin:2];
//    [self.fistBtn setImage:[UIImage imageNamed:@"wsj_2012.jpg"] forState:UIControlStateNormal];
//    [self.fistBtn setTitle:@"第一个" forState:UIControlStateNormal];
    arr = @[self.fistBtn,self.centerBtn,self.rightBtn];
    for (int i = 0; i<3; i++) {
        UIButton *btn =arr[i];
        [btn addTarget:self action:@selector(btnClick:) forControlEvents:UIControlEventTouchUpInside];
        btn.rippleAnimationEnable = YES;
    }
    
    
}
- (void)btnClick:(UIButton *)bt{
    
    if (self.clickBlock) {
        self.clickBlock([arr indexOfObject:bt]);
    }
}




@end
